package org.hxyjs.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class Shoppingtrolley implements Serializable {
    private String stno;

    private String bno;

    private String pno;

    private String atstate;

    private String prno;

    private Integer ststate;

    private static final long serialVersionUID = 1L;

    public String getStno() {
        return stno;
    }

    public void setStno(String stno) {
        this.stno = stno;
    }

    public String getBno() {
        return bno;
    }

    public void setBno(String bno) {
        this.bno = bno;
    }

    public String getPno() {
        return pno;
    }

    public void setPno(String pno) {
        this.pno = pno;
    }

    public String getAtstate() {
        return atstate;
    }

    public void setAtstate(String atstate) {
        this.atstate = atstate;
    }

    public String getPrno() {
        return prno;
    }

    public void setPrno(String prno) {
        this.prno = prno;
    }

    public Integer getStstate() {
        return ststate;
    }

    public void setStstate(Integer ststate) {
        this.ststate = ststate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Shoppingtrolley other = (Shoppingtrolley) that;
        return (this.getStno() == null ? other.getStno() == null : this.getStno().equals(other.getStno()))
            && (this.getBno() == null ? other.getBno() == null : this.getBno().equals(other.getBno()))
            && (this.getPno() == null ? other.getPno() == null : this.getPno().equals(other.getPno()))
            && (this.getAtstate() == null ? other.getAtstate() == null : this.getAtstate().equals(other.getAtstate()))
            && (this.getPrno() == null ? other.getPrno() == null : this.getPrno().equals(other.getPrno()))
            && (this.getStstate() == null ? other.getStstate() == null : this.getStstate().equals(other.getStstate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getStno() == null) ? 0 : getStno().hashCode());
        result = prime * result + ((getBno() == null) ? 0 : getBno().hashCode());
        result = prime * result + ((getPno() == null) ? 0 : getPno().hashCode());
        result = prime * result + ((getAtstate() == null) ? 0 : getAtstate().hashCode());
        result = prime * result + ((getPrno() == null) ? 0 : getPrno().hashCode());
        result = prime * result + ((getStstate() == null) ? 0 : getStstate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", stno=").append(stno);
        sb.append(", bno=").append(bno);
        sb.append(", pno=").append(pno);
        sb.append(", atstate=").append(atstate);
        sb.append(", prno=").append(prno);
        sb.append(", ststate=").append(ststate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}